package com.yq.mapper;

import com.yq.model.bo.ChangeOrderBO;
import com.yq.model.bo.OrdersByPageBO;
import com.yq.model.po.Orders;
import com.yq.model.po.Spec;
import com.yq.model.po.State;
import com.yq.model.vo.OrderInfoVO;
import com.yq.model.vo.OrdersVO;
import com.yq.model.vo.orderinfovo.SpecEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminOrderMapper {
    int getTotalCount(@Param("ordersByPageBO") OrdersByPageBO ordersByPageBO);

    List<OrdersVO> ordersByPage(@Param("ordersByPageBO") OrdersByPageBO ordersByPageBO);

    void deleteOrderById(@Param("orderId") int orderId);

    Orders getOrderInfo(@Param("orderId") int orderId);

    List<SpecEntity> getSpecInfo(@Param("goodsId") Integer goodsId);

    List<State> gteState();

    int changeOrder(@Param("changeOrderBO") ChangeOrderBO changeOrderBO);
}
